package com.yupi.yoj.judge.codesandbox;

import com.yupi.yoj.judge.codesandbox.model.ExecuteCodeRequest;
import com.yupi.yoj.judge.codesandbox.model.ExecuteCodeResponse;

/**
 * 代码沙箱接口定义
 */
public interface CodeSandbox {

    /**
     * 执行代码，输入请求，得到输出
     * @param executeCodeRequest 代码沙箱请求数据
     * @return 代码沙箱响应数据
     */
    ExecuteCodeResponse executeCode(ExecuteCodeRequest executeCodeRequest);

}